<h1>Listing reports</h1>

<hr>
<% for report in @reports %>
<h4><%=h report.name %></h4>
<p><%=h report.description %></p>
<%= button_to "Run Report", { :action => 'show', :id => report } %> 
<hr>
<% end %>

<br />
<%= link_to 'Previous page', { :page => @report_pages.current.previous } if @report_pages.current.previous %>
<%= link_to 'Next page', { :page => @report_pages.current.next } if @report_pages.current.next %> 

<br />

<%= link_to 'New report', :action => 'new' %>
